package com.hoshiicloud.saleorder;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;

@Slf4j
@EnableAsync
@Configuration
@EnableFeignClients
@EnableCircuitBreaker
@SpringBootApplication(scanBasePackages = {"com.hoshiicloud.saleorder","com.hoshiicloud.common"})
@EnableDiscoveryClient
public class HoshiiCloudSaleOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(HoshiiCloudSaleOrderApplication.class, args);
        log.info("HoshiicloudOrder启动成功");
    }

}